package org.framework.common.api.query;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonAutoDetect;

@JsonAutoDetect
public class QueryBean implements Serializable{
	
	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -3756308752018378168L;
	
	/* 
	 * 条件操作符
	 * 参考：Criterion.Operator
	 */
	private String operator;
	
	// 字段名称
	private String fieldName;
	
	// 字段类型
	private String fieldType;
	
	// 和字段名称对应的值
	private Object fieldValue;
	
	// 和字段名称对应的值
	private Object[] fieldValues;
	
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public Object getFieldValue() {
		return fieldValue;
	}

	public void setFieldValue(Object fieldValue) {
		this.fieldValue = fieldValue;
	}

	public Object[] getFieldValues() {
		return fieldValues;
	}

	public void setFieldValues(Object[] fieldValues) {
		this.fieldValues = fieldValues;
	}
}
